<!DOCTYPE html>
<html lang="zh-CN">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
</head>

<body>
    <script>
        const ary = [{
            a: 6
        }, {
            a: 1
        }, {
            a: 5
        }, {
            a: 2
        }];
        const getData = ary => {
            let str = '';
            var arr = ary.filter(item => {
                return item.a != 1;
            })
            console.log(arr);
        }
        getData(ary);
    </script>
</body>

</html>